package com.bean;

/**
 * @ClassName Book
 * @Desc 书类
 * @Author xiaoding
 * @Date 2021/1/10 15:56
 * @Version 1.0
 */

public class Book {
    //功能属性
    private int bId;
    private String bName;
    private String author;
    private int bCategory;
    private String publishing;
    private int bCount;
    private double bookNumber;
    private String bName2;

    //构造方法
    public Book() {
    }
    public Book(int bId, String bName, String author, int bCategory, String publishing, int bCount, double bookNumber, String bName2) {
        this.bId = bId;
        this.bName = bName;
        this.author = author;
        this.bCategory = bCategory;
        this.publishing = publishing;
        this.bCount = bCount;
        this.bookNumber = bookNumber;
        this.bName2 = bName2;
    }
    public Book(int bId, String bName, String author, int bCategory, String publishing, int bCount, double bookNumber) {
        this.bId = bId;
        this.bName = bName;
        this.author = author;
        this.bCategory = bCategory;
        this.publishing = publishing;
        this.bCount = bCount;
        this.bookNumber = bookNumber;
    }
    public Book(String bName, String author, int bCategory, String publishing, int bCount, double bookNumber) {
        this.bName = bName;
        this.author = author;
        this.bCategory = bCategory;
        this.publishing = publishing;
        this.bCount = bCount;
        this.bookNumber = bookNumber;
    }

    //get、set方法
    public int getbId() {
        return bId;
    }

    public String getbName() {
        return bName;
    }

    public String getAuthor() {
        return author;
    }

    public int getbCategory() {
        return bCategory;
    }

    public String getPublishing() {
        return publishing;
    }

    public int getbCount() {
        return bCount;
    }

    public double getBookNumber() {
        return bookNumber;
    }

    public String getbName2() { return bName2; }

    public void setbId(int bId) {
        this.bId = bId;
    }

    public void setbName(String bName) {
        this.bName = bName;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void setbCategory(int bCategory) {
        this.bCategory = bCategory;
    }

    public void setPublishing(String publishing) {
        this.publishing = publishing;
    }

    public void setbCount(int bCount) {
        this.bCount = bCount;
    }

    public void setBookNumber(double bookNumber) {
        this.bookNumber = bookNumber;
    }

    public void setbName2(String bName2) { this.bName2 = bName2; }

    @Override
    public String toString() {
        return "Book{" +
                "bId=" + bId +
                ", bName='" + bName + '\'' +
                ", author='" + author + '\'' +
                ", bCategory=" + bCategory +
                ", publishing='" + publishing + '\'' +
                ", bCount=" + bCount +
                ", bookNumber=" + bookNumber +
                ", bName2='" + bName2 + '\'' +
                '}';
    }
}
